package com.bazhua.bazo.service;

import com.bazhua.bazo.common.wxapplet.model.WxAccountResponse;
import com.bazhua.bazo.common.wxapplet.model.WxLoginRequest;
import com.bazhua.bazo.repository.model.WxUserSearch;
import com.bazhua.bazo.repository.model.result.CommonResult;
import com.bazhua.bazo.repository.model.result.PageListResult;

import java.io.IOException;
import java.io.InputStream;

public interface ICommonService {

    CommonResult GetWeiXinOpenId(String code) throws IOException;

    CommonResult getWxUserInfoNew(WxAccountResponse wxAccountResponse);

    CommonResult GetWXOAuthUserInfo(String accessToken, String openId) throws IOException;

    CommonResult getWxUserInfo(WxLoginRequest request);

    CommonResult wxUserAuthorization(String code);

    CommonResult updateWxUserPhone(WxLoginRequest request);

    CommonResult upLoadPicture(String fileName, InputStream stream);

    CommonResult registerCheckUser(String openId, Long shopId);
}
